<style>

    /*** 标签 ***/
    .tag-card {
        transition: all 0.3s ease;
    }

    .tag-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .tag-card .tag-stats {
        font-size: 0.85rem;
    }

    .tag-card .tag-stat-item {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .tag-card .tag-author {
        font-size: 0.85rem;
    }

    .tag-card .image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .tag-card .image-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tag-card .tag-image {
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 4px;
    }

    .tag-card .badge-pill {
        transition: all 0.2s ease;
    }

    .tag-card .badge-pill:hover {
        transform: scale(1.05);
    }

    .tag-card .like-btn, .tag-card .save-btn {
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .tag-card .like-btn:hover, .tag-card .save-btn:hover {
        transform: scale(1.1);
    }

    .tag-card .like-btn.active {
        color: #dc2626;
    }

    .tag-card .save-btn.active {
        color: #2563eb;
    }
</style>

<div class="container py-5">
    <h2 class="mb-5 text-center">热门标签推荐</h2>

    <!-- 布局1：基础文本标签（无图片） -->
    <section class="mb-8">
        <h3 class="mb-4 text-primary"><i class="fas fa-tags me-2"></i>话题标签</h3>
        <div class="row">
            <!-- 标签1 -->
            <div class="col-md-6 col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <div class="d-flex justify-content-between items-start mb-3">
                        <h5 class="fw-bold text-lg mb-0">摄影技巧</h5>
                        <span class="badge bg-primary bg-opacity-10 text-primary">热门</span>
                    </div>

                    <p class="text-muted text-sm mb-3 line-clamp-2">分享各类摄影技巧、构图方法、后期处理教程，适合摄影爱好者交流学习。</p>

                    <div class="tag-author text-muted mb-3">
                        <img src="https://picsum.photos/id/1012/32/32" alt="摄影师小明" class="rounded-circle me-2"
                             width="24" height="24">
                        摄影师小明
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-3 text-muted">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-1"></i>
                                <span>24.5k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-1"></i>
                                <span>1.2k</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn active">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn active">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 标签2 -->
            <div class="col-md-6 col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <div class="d-flex justify-content-between items-start mb-3">
                        <h5 class="fw-bold text-lg mb-0">美食探店</h5>
                        <span class="badge bg-success bg-opacity-10 text-success">新话题</span>
                    </div>

                    <p class="text-muted text-sm mb-3 line-clamp-2">发现城市里的隐藏美食，分享探店体验和美食攻略，寻找志同道合的吃货朋友。</p>

                    <div class="tag-author text-muted mb-3">
                        <img src="https://picsum.photos/id/1027/32/32" alt="美食家小丽" class="rounded-circle me-2"
                             width="24" height="24">
                        美食家小丽
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-3 text-muted">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-1"></i>
                                <span>18.3k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-1"></i>
                                <span>896</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 标签3 -->
            <div class="col-md-6 col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <div class="d-flex justify-content-between items-start mb-3">
                        <h5 class="fw-bold text-lg mb-0">健身打卡</h5>
                        <span class="badge bg-warning bg-opacity-10 text-warning">趋势</span>
                    </div>

                    <p class="text-muted text-sm mb-3 line-clamp-2">记录健身日常，分享训练计划和饮食搭配，互相鼓励，共同进步。</p>

                    <div class="tag-author text-muted mb-3">
                        <img src="https://picsum.photos/id/1074/32/32" alt="健身教练大强" class="rounded-circle me-2"
                             width="24" height="24">
                        健身教练大强
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-3 text-muted">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-1"></i>
                                <span>31.2k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-1"></i>
                                <span>2.5k</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 布局2：带单张图片的标签 -->
    <section class="mb-8">
        <h3 class="mb-4 text-primary"><i class="fas fa-image me-2"></i>图文标签</h3>
        <div class="row">
            <!-- 标签1 -->
            <div class="col-md-6">
                <div class="tag-card bg-white rounded-xl shadow-sm overflow-hidden h-100">
                    <div class="row g-0">
                        <div class="col-4">
                            <img src="https://picsum.photos/id/1039/300/300" alt="旅行日记"
                                 class="w-100 h-100 object-cover">
                        </div>
                        <div class="col-8 p-4">
                            <div class="d-flex justify-content-between items-start mb-2">
                                <h5 class="fw-bold mb-0">旅行日记</h5>
                                <span class="badge bg-primary bg-opacity-10 text-primary">热门</span>
                            </div>

                            <p class="text-muted text-sm mb-2 line-clamp-2">记录旅途中的美好瞬间和独特体验，分享旅行攻略和小众目的地。</p>

                            <div class="tag-author text-muted mb-2 text-sm">
                                <img src="https://picsum.photos/id/1066/32/32" alt="背包客阿杰" class="rounded-circle me-1"
                                     width="20" height="20">
                                背包客阿杰
                            </div>

                            <div class="d-flex justify-content-between align-items-center">
                                <div class="tag-stats d-flex gap-2 text-muted text-sm">
                                    <div class="tag-stat-item">
                                        <i class="far fa-eye me-0"></i>
                                        <span>42.8k</span>
                                    </div>
                                    <div class="tag-stat-item">
                                        <i class="far fa-comment me-0"></i>
                                        <span>3.7k</span>
                                    </div>
                                </div>

                                <div class="d-flex gap-2">
                                    <div class="like-btn">
                                        <i class="far fa-heart"></i>
                                    </div>
                                    <div class="save-btn">
                                        <i class="far fa-bookmark"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 标签2 -->
            <div class="col-md-6">
                <div class="tag-card bg-white rounded-xl shadow-sm overflow-hidden h-100">
                    <div class="row g-0">
                        <div class="col-4">
                            <img src="https://picsum.photos/id/1080/300/300" alt="读书分享"
                                 class="w-100 h-100 object-cover">
                        </div>
                        <div class="col-8 p-4">
                            <div class="d-flex justify-content-between items-start mb-2">
                                <h5 class="fw-bold mb-0">读书分享</h5>
                                <span class="badge bg-info bg-opacity-10 text-info">精选</span>
                            </div>

                            <p class="text-muted text-sm mb-2 line-clamp-2">推荐好书，分享阅读心得和读书笔记，一起在文字中探索世界。</p>

                            <div class="tag-author text-muted mb-2 text-sm">
                                <img src="https://picsum.photos/id/1025/32/32" alt="书虫小雅" class="rounded-circle me-1"
                                     width="20" height="20">
                                书虫小雅
                            </div>

                            <div class="d-flex justify-content-between align-items-center">
                                <div class="tag-stats d-flex gap-2 text-muted text-sm">
                                    <div class="tag-stat-item">
                                        <i class="far fa-eye me-0"></i>
                                        <span>19.5k</span>
                                    </div>
                                    <div class="tag-stat-item">
                                        <i class="far fa-comment me-0"></i>
                                        <span>1.8k</span>
                                    </div>
                                </div>

                                <div class="d-flex gap-2">
                                    <div class="like-btn">
                                        <i class="far fa-heart"></i>
                                    </div>
                                    <div class="save-btn">
                                        <i class="far fa-bookmark"></i>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 布局3：带多张图片的标签 -->
    <section class="mb-8">
        <h3 class="mb-4 text-primary"><i class="fas fa-th me-2"></i>图集标签</h3>
        <div class="row">
            <!-- 标签1（2x2图片） -->
            <div class="col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <h5 class="fw-bold mb-3">城市风光</h5>

                    <div class="image-grid mb-3">
                        <img src="https://picsum.photos/id/1031/200/200" alt="城市风光" class="tag-image">
                        <img src="https://picsum.photos/id/1033/200/200" alt="城市风光" class="tag-image">
                        <img src="https://picsum.photos/id/1036/200/200" alt="城市风光" class="tag-image">
                        <img src="https://picsum.photos/id/1041/200/200" alt="城市风光" class="tag-image">
                    </div>

                    <div class="tag-author text-muted mb-2 text-sm">
                        <img src="https://picsum.photos/id/1077/32/32" alt="城市摄影师" class="rounded-circle me-1"
                             width="20" height="20">
                        城市摄影师
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-2 text-muted text-sm">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-0"></i>
                                <span>56.2k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-0"></i>
                                <span>4.1k</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 标签2（3x3图片） -->
            <div class="col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <h5 class="fw-bold mb-3">宠物日常</h5>

                    <div class="image-grid image-grid-3 mb-3">
                        <img src="https://picsum.photos/id/1025/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1062/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1074/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1084/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1079/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1069/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1059/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1068/200/200" alt="宠物日常" class="tag-image">
                        <img src="https://picsum.photos/id/1071/200/200" alt="宠物日常" class="tag-image">
                    </div>

                    <div class="tag-author text-muted mb-2 text-sm">
                        <img src="https://picsum.photos/id/1062/32/32" alt="宠物达人" class="rounded-circle me-1" width="20"
                             height="20">
                        宠物达人
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-2 text-muted text-sm">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-0"></i>
                                <span>78.5k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-0"></i>
                                <span>6.3k</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 标签3（混合布局） -->
            <div class="col-lg-4">
                <div class="tag-card bg-white rounded-xl shadow-sm p-4 h-100">
                    <h5 class="fw-bold mb-3">手工制作</h5>

                    <div class="mb-3">
                        <div class="row g-1">
                            <div class="col-8">
                                <img src="https://picsum.photos/id/1060/400/300" alt="手工制作"
                                     class="w-100 h-100 object-cover rounded">
                            </div>
                            <div class="col-4 d-flex flex-column gap-1">
                                <img src="https://picsum.photos/id/1058/200/200" alt="手工制作"
                                     class="w-100 h-50 object-cover rounded">
                                <img src="https://picsum.photos/id/1057/200/200" alt="手工制作"
                                     class="w-100 h-50 object-cover rounded">
                            </div>
                        </div>
                    </div>

                    <div class="tag-author text-muted mb-2 text-sm">
                        <img src="https://picsum.photos/id/1083/32/32" alt="手作达人" class="rounded-circle me-1" width="20"
                             height="20">
                        手作达人
                    </div>

                    <div class="d-flex justify-content-between align-items-center">
                        <div class="tag-stats d-flex gap-2 text-muted text-sm">
                            <div class="tag-stat-item">
                                <i class="far fa-eye me-0"></i>
                                <span>28.7k</span>
                            </div>
                            <div class="tag-stat-item">
                                <i class="far fa-comment me-0"></i>
                                <span>1.5k</span>
                            </div>
                        </div>

                        <div class="d-flex gap-2">
                            <div class="like-btn">
                                <i class="far fa-heart"></i>
                            </div>
                            <div class="save-btn">
                                <i class="far fa-bookmark"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 布局4：紧凑标签云 -->
    <section class="mb-8">
        <h3 class="mb-4 text-primary"><i class="fas fa-cloud me-2"></i>热门标签云</h3>
        <div class="bg-white rounded-xl shadow-sm p-4">
            <div class="d-flex flex-wrap gap-2">
                <!-- 标签云项目 -->
                <div class="badge-pill bg-primary bg-opacity-10 text-primary px-3 py-2 d-flex align-items-center gap-2">
                    <span>电影评论</span>
                    <span class="text-xs opacity-75">(12.5k)</span>
                </div>

                <div class="badge-pill bg-secondary bg-opacity-10 text-secondary px-3 py-2 d-flex align-items-center gap-2">
                    <span>音乐分享</span>
                    <span class="text-xs opacity-75">(9.8k)</span>
                </div>

                <div class="badge-pill bg-success bg-opacity-10 text-success px-3 py-2 d-flex align-items-center gap-2">
                    <span>园艺种植</span>
                    <span class="text-xs opacity-75">(7.3k)</span>
                </div>

                <div class="badge-pill bg-danger bg-opacity-10 text-danger px-3 py-2 d-flex align-items-center gap-2">
                    <span>游戏攻略</span>
                    <span class="text-xs opacity-75">(22.6k)</span>
                </div>

                <div class="badge-pill bg-warning bg-opacity-10 text-warning px-3 py-2 d-flex align-items-center gap-2">
                    <span>穿搭技巧</span>
                    <span class="text-xs opacity-75">(18.4k)</span>
                </div>

                <div class="badge-pill bg-info bg-opacity-10 text-info px-3 py-2 d-flex align-items-center gap-2">
                    <span>科技资讯</span>
                    <span class="text-xs opacity-75">(15.2k)</span>
                </div>

                <div class="badge-pill bg-dark bg-opacity-10 text-dark px-3 py-2 d-flex align-items-center gap-2">
                    <span>历史故事</span>
                    <span class="text-xs opacity-75">(6.7k)</span>
                </div>

                <div class="badge-pill bg-primary bg-opacity-10 text-primary px-3 py-2 d-flex align-items-center gap-2">
                    <span>编程学习</span>
                    <span class="text-xs opacity-75">(14.3k)</span>
                </div>

                <div class="badge-pill bg-secondary bg-opacity-10 text-secondary px-3 py-2 d-flex align-items-center gap-2">
                    <span>绘画艺术</span>
                    <span class="text-xs opacity-75">(8.9k)</span>
                </div>

                <div class="badge-pill bg-success bg-opacity-10 text-success px-3 py-2 d-flex align-items-center gap-2">
                    <span>厨艺分享</span>
                    <span class="text-xs opacity-75">(11.2k)</span>
                </div>

                <div class="badge-pill bg-danger bg-opacity-10 text-danger px-3 py-2 d-flex align-items-center gap-2">
                    <span>星座运势</span>
                    <span class="text-xs opacity-75">(9.5k)</span>
                </div>

                <div class="badge-pill bg-warning bg-opacity-10 text-warning px-3 py-2 d-flex align-items-center gap-2">
                    <span>汽车评测</span>
                    <span class="text-xs opacity-75">(7.8k)</span>
                </div>
            </div>
        </div>
    </section>
</div>


